package utils.enums;

/**
 * 币种
 * @author guogf
 *
 */
public enum CurrTypeEnum {
	RMB("156","人民币"),MK("250","马克"),FL("256","法郎"),
	GY("344","港元"),RY("392","日元"),YB("826","英镑"),
	MY("840","美元"),OY("954","欧元");
	private String key; 
	private String value; 
	
	private CurrTypeEnum(String type, String desc) { 
		key = type;
		value = desc;
	}

	public String getKey() {
		return key;
	}
	public String getValue() {
		return value;
	}

	public static CurrTypeEnum getInstance(String s) {
		CurrTypeEnum[] allStatus = CurrTypeEnum.values();
		for (CurrTypeEnum ws : allStatus) {
			if (ws.getKey().equalsIgnoreCase(s)) {
				return ws;
			}
		}
		throw new IllegalArgumentException("值非法，没有符合课程状态的枚举对象");
	} 
}
